package sunger.net.org.dropmenu;

import sunger.net.org.dropmenu.tab.listener.CustomTabEntity;

/**
 * Created by sunger on 16/4/16.
 */
public class TabEntity implements CustomTabEntity {
    private final String title;
    private final int selectedIcon;
    private final int unSelectedIcon;

    /**
     * 构造
     *
     * @param title 标题
     * @param selectedIcon 选中
     * @param unSelectedIcon 未选中
     */
    public TabEntity(String title, int selectedIcon, int unSelectedIcon) {
        this.title = title;
        this.selectedIcon = selectedIcon;
        this.unSelectedIcon = unSelectedIcon;
    }

    /**
     * 获取title
     *
     * @return title
     */
    @Override
    public String getTabTitle() {
        return title;
    }

    /**
     * 获取选中图标
     *
     * @return id
     */
    @Override
    public int getTabSelectedIcon() {
        return selectedIcon;
    }

    /**
     * 获取未选中图标
     *
     * @return id
     */
    @Override
    public int getTabUnselectedIcon() {
        return unSelectedIcon;
    }
}
